﻿/******************************************************   
创建者: ljj
创建时间: 2018-10-21
修改:
修改时间: 
功能: 指标数据-日周月年累计
 ******************************************************/

using com.nm.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WeiXinAPI.model
{
    public class WxDataIndicatorsModel
    {
        public class ListModel
        {
            public LSaleDataModel saleData { get; set; }
            public IList<AreaDataModel> areaData { get; set; }
            public IList<SeqTrendModel> trendData { get; set; }
        }

        public class SaleDataModel
        {
            [ParamDescription("销售日期")]
            public string OperationDate { get; set; }
            [ParamDescription("销售金额")]
            public decimal AchievAmt { get; set; }
            [ParamDescription("销售数量")]
            public long SaleQty { get; set; }
            [ParamDescription("客流量")]
            public long CT { get; set; }
            [ParamDescription("客单数")]
            public long CN { get; set; }
            [ParamDescription("转换率")]
            public decimal ConverRate { get; set; }
            [ParamDescription("连带率")]
            public decimal JointRate { get; set; }
            [ParamDescription("件单价")]
            public decimal UnitPrice { get; set; }
            [ParamDescription("客单价")]
            public decimal CustomerPrice { get; set; }
        }

        public class LSaleDataModel: SaleDataModel
        {
            [ParamDescription("上期销售金额")]
            public decimal LAchievAmt { get; set; }
            [ParamDescription("上期销售数量")]
            public long LSaleQty { get; set; }
            [ParamDescription("上期客流量")]
            public long LCT { get; set; }
            [ParamDescription("上期客单数")]
            public long LCN { get; set; }
            [ParamDescription("上期转换率")]
            public decimal LConverRate { get; set; }
            [ParamDescription("上期连带率")]
            public decimal LJointRate { get; set; }
            [ParamDescription("上期件单价")]
            public decimal LUnitPrice { get; set; }
            [ParamDescription("上期客单价指标")]
            public decimal LCustomerPrice { get; set; }
            [ParamDescription("销售金额环比")]
            public decimal GroAchievAmt { get; set; }
            [ParamDescription("销售数量环比")]
            public decimal GroSaleQty { get; set; }
            [ParamDescription("客流量环比")]
            public decimal GroCT { get; set; }
            [ParamDescription("客单数环比")]
            public decimal GroCN { get; set; }
            [ParamDescription("转换率环比")]
            public decimal GroConverRate { get; set; }
            [ParamDescription("连带率环比")]
            public decimal GroJointRate { get; set; }
            [ParamDescription("件单价环比")]
            public decimal GroUnitPrice { get; set; }
            [ParamDescription("客单价环比")]
            public decimal GroCustomerPrice { get; set; }
        }

        public class AreaDataModel: LSaleDataModel
        {
            [ParamDescription("区域")]
            public string RegioneName { get; set; }
            [ParamDescription("销售金额环比增长")]
            public decimal SeqAchievAmt { get; set; }
            [ParamDescription("销售数量环比增长")]
            public decimal SeqSaleQty { get; set; }
            [ParamDescription("客流量环比增长")]
            public decimal SeqCT { get; set; }
            [ParamDescription("客单数环比增长")]
            public decimal SeqCN { get; set; }
            [ParamDescription("转换率环比增长")]
            public decimal SeqConverRate { get; set; }
            [ParamDescription("连带率环比增长")]
            public decimal SeqJointRate { get; set; }
            [ParamDescription("件单价环比增长")]
            public decimal SeqUnitPrice { get; set; }
            [ParamDescription("客单价环比增长")]
            public decimal SeqCustomerPrice { get; set; }
        }

        public class SeqTrendModel : SaleDataModel
        {
            [ParamDescription("区域")]
            public string RegioneName { get; set; }
        }
    }
}
